package com.supply.controller;

import com.supply.pojo.ResultBean;
import com.supply.service.EchartsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/echarts")
public class EchartsController {
    @Autowired
    private EchartsService echartsService;

    @GetMapping("/queryProcurementByLastSevenDays")
    public ResultBean queryProcurementByLastSevenDays(){
        return ResultBean.success(echartsService.queryProcurementByLastSevenDays());
    }
    @GetMapping("/queryOutBoundByLastSevenDays")
    public ResultBean queryOutBoundByLastSevenDays(){
        return ResultBean.success(echartsService.queryOutBoundByLastSevenDays());
    }
}
